import ListView from "./views/list/ListView"
import './App.css'
import { useState } from "react"

function App () {
  const [theme, setTheme] = useState('') // 主题类名

  function changeTheme (newTheme: string) {
    console.log(newTheme)
    setTheme(newTheme)
  }

  return (
    <div className={ ['app', theme].join(theme ? ' ' : '') }>
      {/* { theme } */}
      <ListView changeTheme={ changeTheme } theme={ theme } />
    </div>
  )
}

export default App
